using System;
using System.Collections.Generic;
using System.Text;

using Pollux.Interpreter.Interface;

namespace Pollux.Interpreter.Venus2
{
    public class TransmissionCommand : IStringCommand
    {
        // Implementierung der einzelnen Bestandteile als Teil der Snytax
        private List<ISyntaxPart> tokens;
        #region IStringCommand Member

        string IStringCommand.ToString()
        {
			StringBuilder sb = new StringBuilder ( 3 );
            foreach (ISyntaxPart part in tokens)
            {
                if (sb.Length > 0)
                {
					sb.Append ( " " );
                }

				sb.Append ( part.ToString () );
            }
			return sb.ToString ();
        }

        public List<ISyntaxPart> Tokens
        {
            get
            {
				return tokens;
            }
            set
            {
				tokens = value;
            }
        }

        #endregion
    }
}
